import http from '../utils/request'

////添加学员信息
export let addStudent = (data)=> http.post('/students/addstu',{...data})


////获取学员信息
export let getStuApi = (page = 1, count = 10 ,classes) => http.get('/students/getstulist',{
    params:{
        page,
        count,
        classs:classes
    }
})

////删除学员信息
export let delStu = (sId) => http.get('/students/delstu',{
    params:{
        sId
    }
})

////修改用户信息
export let changeStu = (data) => http.post('/students/updatestu',{
    ...data
})

////获取搜索过来的信息
export let search = (key,count,page)=> http.get('/students/searchstu',{
    params:{
        key,
        count,
        page
    }
})